import request from '@/utils/request'

/**
 * 获取轮播图
 * @param  {[type]} params [description]
 * @return {[type]}        [description]
 */
export function getBanners(params) {
  return request({
    url: 'http://36.152.9.59:8090/api/site/banners',
    method: 'get',
    params
  })
}

/**
 * 获取首页统计数据
 */
export function getHomeTotals(){
  return request({
    url: 'http://36.152.9.59:8090/api/site/statistic',
    method: 'get',
  })
}

/**
 * 获取首页推荐物种数据
 */
export function getHomeRecommend(){
  return request({
    url: 'http://36.152.9.59:8090/api/site/recommend',
    method: 'get',
  })
}